<!-- mate start -->
<?php $this->load->view('assists/mate.php') ?>
<!-- mate end -->
<link rel="stylesheet" href="<?=base_url('static/index/css/menu.css')?>" />
<link rel="stylesheet" href="<?=base_url('static/index/css/my_create_project.css')?>">
<title>我的参加</title>
<!-- header strat -->
<?php $this->load->view('assists/header.php') ?>
<!-- header end -->
	<div id="top-alert" class="fixed alert-success" style="display:none;">
    	<button class="close fixed" >×</button>
    	<p class="alert-content">这是内容</p>
    </div>
	<div id="user_center">
		<div class="user_center clearfix">
			<?php $this->load->view('assists/menu.php') ?>
			<div class="user_content">
				<div class="AdminHead">
					<h2>我参加的项目</h2>
				</div>
				<div class="grzxTabCBox">
					<table class="gqDDListTable">
						<colgroup>
							<col width="280px">
							<col width="120px">
							<col width="90px">
							<col width="160px">
							<col width="auto">
						</colgroup>
						<thead>
							<tr>
								<th>项目信息</th>
								<th>项目类型</th>
								<th>项目状态</th>
								<th>项目进度</th>
								<th>操作</th>
							</tr>
						</thead>
						<?php if(!empty($project_list)){
							foreach ($project_list as $row){ ?>
						<tbody>
							<tr><td colspan="5"></td></tr>
							<tr class="ftTr">
								<td colspan="5">添加时间：<?=date("Y-m-d H:i:s",$row['starttime'])?></td>
							</tr>
							<tr class="inforTr">
								<td><img src="<?=base_url($row['logo'])?>" /></td>
								<td><?=$row['cname']?></td>
								<td><?php if($row['isEnd']){echo "未结束";}else{echo "已经结束";} ?></td>
								<td>
									<div>
										<p class="inforText_p">目标：<?=$row['personNum']?>人</p>
										<div class="inforRatioBox clearfix">
											<div class="inforRatio">
												<div class="inner" style="width:<?=($row['join_count']/$row['personNum']*100)?>%;"></div>
											</div>
											<span class="ng-binding"><?=($row['join_count']/$row['personNum']*100)?>%</span>
										</div>
									</div>
								</td>
								<td><a href="<?=site_url('User_center/abandon_project/'.$row['pid'])?>" class="del_a confirm ajax-get">放弃参加</a></td>
							</tr>
						</tbody>
						<?php }} ?>
					</table>
				</div>
			</div>
		</div>
	</div>
	
	<!-- footer start -->
   	<?php $this->load->view('assists/footer.php') ?>
   	<!-- footer end -->
   	<script type="text/javascript" src="<?=base_url('static/index/js/ajax.js')?>"></script>
</body>
</html>
